package com.sl.au.service;

import java.util.List;
import java.util.Map;

import com.sl.au.entity.Chance;
import com.sl.au.entity.ChanceStatistics;
import com.sl.au.entity.ExpectedOrder;
import com.sl.au.entity.ExpectedOrderToChance;
import com.sl.au.entity.User;
import com.sl.au.repository.ExpectedOrderRepository;
import com.sl.au.repository.ExpectedOrderToChanceRepository;

public interface ExpectedOrderToChanceService extends BaseService {
	ExpectedOrderToChanceRepository getRepository();
	
	/**
	 * 快速查询获取分页数据
	 * 
	 * @param start
	 * @param length
	 * @param key
	 * @param orderName
	 * @param dir
	 * @return
	 */
	List<ExpectedOrderToChance> getExpectedOrders(int start, int length, Map<String, String> condition, String orderName, String dir);

	/**
	 * 快速查询获取分页数据总数
	 * 
	 * @param start
	 * @param length
	 * @param key
	 * @param orderName
	 * @param dir
	 * @return
	 */
	int getExpectedOrdersCount(Map<String, String> condition);
	
	/**
	 * 根据权限查询分页
	 * @param start
	 * @param length
	 * @param condition
	 * @param orderName
	 * @param dir
	 * @return
	 */
	List<ExpectedOrderToChance> getExpectedOrder(int start, int length, Map<String, String> condition, String orderName, String dir);

	/**
	 * 根据权限查询数据总数
	 * @param condition
	 * @return
	 */
	long getExpectedOrderCount(Map<String, String> condition);
	
}

